package com.bst.common.base.service;

import com.alibaba.druid.pool.DruidDataSource;
import com.bst.common.exception.base.BaseException;
import com.bst.common.vo.BaseDbPubVO;

import java.util.List;
import java.util.Map;

public interface IBaseDbPubService {

    List<Map<String,Object>> queryDataBySql(DruidDataSource datasource, String sql) throws BaseException;

    BaseDbPubVO querySingleDataBySql(DruidDataSource datasource, String sql) throws BaseException;

    /**
     * 多sql查询，初次使用场景为数据核对时按月统计业务系统数据数量
     * @param datasource
     * @param sqls
     * @return
     * @throws BaseException
     */
    // Map<String, BaseDbPubVO> querySingleDataByIdDb(DruidDataSource datasource, Map<String,String> sqls, String valFld) throws BaseException;
}
